package servlet;

import java.util.ArrayList;

import pub.fjf.http.HttpRequestFilter;
import pub.fjf.http.HttpServlet;
import pub.fjf.http.HttpServletRequest;
import pub.fjf.http.HttpServletResponse;
import pub.fjf.http.WebProject;
import pub.fjf.tools.Json;
import pub.fjf.tools.StringTools;

public class FilterList extends HttpServlet {
	
	@SuppressWarnings("unused")
	private void handleFilterOrder(HttpServletRequest req, HttpServletResponse resp,Json json) {
		int projectIndex=json.getMember("projectIndex").toInt();
		String order=json.getMember("order").getValueString();// 
		WebProject project=req.getClient().getServer().getWebProjects().get(projectIndex);
		ArrayList<HttpRequestFilter> filters=project.getFilters();
		String filtersConfigPath=project.getRootPath()+"/"+project.getConfigPath();
		String filtersConfig=StringTools.readAsPath(filtersConfigPath);
		Json filtersJson=new Json(filtersConfig);
		
		
	}
	
	@Override
	public void doGet(HttpServletRequest req, HttpServletResponse resp) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void doPost(HttpServletRequest req, HttpServletResponse resp) {
		// TODO Auto-generated method stub
		
	}

}
